/****************************************************************************
  From Qt Examples
****************************************************************************/

#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "proxy.h"
#include <QTextEdit>
#include <QLineEdit>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <Qt>

class QThread;

namespace Ui {
    class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

public slots:
    //void send();
    void readCMsg(QString);
    void serverAdded(ServerLoad*, void*);
    void serverRemoved(ServerLoad*);
    //void close();
    void setAverageWorkload(int,int);

private:
    Ui::Dialog *ui;
    Proxy proxy;
    QString ipAddress;
    QString proxyIP;
    QString serverData;
    QVBoxLayout *layout;
};

#endif
